<?php
/**
 * 后台首页，用于展示网站的总体信息，或数据统计信息
 *  @author Mortimer He <mortimerhe@163.com>
 */
namespace Manage\Controller;
use Think\Controller;
class IndexController extends CommonController {
    public function index(){
    	$db=M();
    	$mysql_version=$db->query('SELECT version()');
    	$mysql_version = $mysql_version? $mysql_version[0]['version()']: @mysql_get_server_info();
    	$this->assign('mysql_version',$mysql_version);
        $this->display();
    }
    public function test(){
    	 echo  $this->checkPermission('ADDD');	 
    }
}